import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import ShopCar from '@/pages/shopCar'
import Order from '@/pages/order'
import PayPage from '@/pages/payPage'
import ShopCarEdit from '@/pages/shopCarEdit'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/home',
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/shopCar',
      name: 'ShopCar',
      component: ShopCar
    },
    {
      path: '/order',
      name: 'Order',
      component: Order
    },
    {
      path: '/payPage',
      name: 'PayPage',
      component: PayPage
    },
    {
      path: '/shopCarEdit',
      name: 'ShopCarEdit',
      component: ShopCarEdit
    }
  ]
})
